package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.demo.domain.entity.BannerDO;
import com.example.demo.dao.BannerMapper;
import com.example.demo.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * BannerServiceImpl
 *
 * @author haochen78
 * @date 2025/11/6 16:52
 **/
@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public List<BannerDO> list(String type) {
        return bannerMapper.selectList(new LambdaQueryWrapper<BannerDO>().eq(BannerDO::getType, type));
    }
}
